<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>写日记</title>
</head>
<body>
    <h1>写日记</h1>
    <form action="/submit" method="post">
        <label for="date">日期:</label>
        <input type="date" id="date" name="date" required><br><br>

        <label for="weather">天气:</label>
        <input type="text" id="weather" name="weather" required><br><br>

        <label for="mood">心情:</label>
        <input type="text" id="mood" name="mood" required><br><br>

        <label for="event">大事件:</label>
        <textarea id="event" name="event" rows="4" required></textarea><br><br>

        <button type="submit">提交</button>
    </form>
    <a href="/history">查看历史记录</a>
</body>
</html>